var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var UI_Sidebar_UIBindings = require("AA_UI_Sidebar_UIBindings");
var UIView = require("AA_UIView");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
var _property = _decorator.property;

var _def_UI_Sidebar = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.auto_ui = null;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype._show = function () {};
  _creator.prototype._clickListener = function (e) {
    switch (e) {
      case this.auto_ui.btn_close:
        this._close();
        break;
      case this.auto_ui.btn_sidebar:
        this._goto();
    }
  };
  _creator.prototype._goto = function () {
    mg.navigateToScene({
      scene: "sidebar"
    });
  };
  __decorate([_property(UI_Sidebar_UIBindings.default)], _creator.prototype, "auto_ui", undefined);
  return __decorate([_ccclass], _creator);
}(UIView.default);
exports.default = _def_UI_Sidebar;